QT       += core gui serialport concurrent

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    controller.cpp \
    dialog_log.cpp \
    dialog_mc_update.cpp \
    main.cpp \
    mainwindow.cpp \
    mainwindow_plot.cpp \
    plot/plotmanage.cpp \
    protocol/codec.cpp \
    protocol/command.cpp \
    protocol/databuffer.cpp \
    protocol/rxmessage.cpp \
    protocol/serial.cpp \
    qcustomplot/qcustomplot.cpp \
    serial/qextserialport.cpp \
    serial/qextserialport_win.cpp \
    usbbox.cpp \
    utils/FILEWR.cpp \
    utils/file_csv.cpp \
    utils/findcomputercom.cpp \
    utils/utils.cpp

HEADERS += \
    controller.h \
    dialog_log.h \
    dialog_mc_update.h \
    mainwindow.h \
    mc_config.h \
    plot/plotmanage.h \
    protocol/codec.h \
    protocol/command.h \
    protocol/databuffer.h \
    protocol/rxmessage.h \
    protocol/serial.h \
    qcustomplot/qcustomplot.h \
    serial/qextserialport.h \
    serial/qextserialport_global.h \
    serial/qextserialport_p.h \
    types.h \
    usbbox.h \
    utils/FILEWR.h \
    utils/file_csv.h \
    utils/findcomputercom.h \
    utils/utils.h \
    protocol/protocol.h

FORMS += \
    dialog_log.ui \
    dialog_mc_update.ui \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    image.qrc

RC_FILE += \
    image/myico.rc
